#include <iostream>

class MyIneger
{
    friend std::ostream& operator<<(std::ostream& cout, MyIneger myint);
public:
    MyIneger()
    {
        m_Num = 0;
    }

    MyIneger& operator++()
    {
        m_Num++;
        return *this;
    }
private:
    int m_Num;
};

std::ostream& operator<<(std::ostream& cout, MyIneger myint)
{
    cout << ++myint.m_Num;
    return cout;
} 

void test01()
{
    MyIneger myint;
    std::cout << myint << std::endl;
}

int main()
{
    test01();
    return 0;
}